import request from '@/utils/request'

// 查询碳排放列表
export function listCompanyEf(query) {
  return request({
    url: '/busi/companyEf/list',
    method: 'get',
    params: query
  })
}

// 查询碳排放详细
export function getCompanyEf(id) {
  return request({
    url: '/busi/companyEf/' + id,
    method: 'get'
  })
}

// 新增碳排放
export function addCompanyEf(data) {
  return request({
    url: '/busi/companyEf',
    method: 'post',
    data: data
  })
}

// 修改碳排放
export function updateCompanyEf(data) {
  return request({
    url: '/busi/companyEf',
    method: 'put',
    data: data
  })
}

// 删除碳排放
export function delCompanyEf(id) {
  return request({
    url: '/busi/companyEf/' + id,
    method: 'delete'
  })
}
